/**
 * 选择图书
 * @param selectType input类型 radio checkbox
 * @param subjectIds 专业ids
 */
function selectBook(params) {
    if(typeof params.selectType=='undefined'){
        params.selectType ='';
    }
    if(typeof params.subjectIds=='undefined'){
        params.subjectIds ='';
    }
    parent.layer.open({
        type: 2,
        area: winArea,
        btn: ['选择', '取消'],
        content: baseloaction + "/admin/book/selectBookList?selectType=" + params.selectType + '&subjectIds=' + params.subjectIds,
        maxmin: true,
        shade: [0.3, '#000'],
        shadeClose: false,
        title: '选择图书',
        yes: function (index, layero) {
            var _iframe = layero.find("iframe:visible");
            var iframeName = _iframe[0].name;
            var book = parent.frames[iframeName].getSelectBook();
            if (book) {
                var currentIframeName = contentMainIframeName();
                parent.frames[currentIframeName][params.callback](book);
                parent.layer.close(index);
            }
        }
    });
}